package com.tangding.enums;

/**
 * @description 
 *
 * @author Ranger
 * @version 2017年1月3日_下午2:21:12
 *
 */
public enum Auth {
	NULL(0),
	LOGIN(1);
	
	public int auth;
	
	private Auth(int auth) {
		this.auth = auth;
	}

	public int get() {
		return auth;
	}
	
	public static Auth get(int auth) {
		Auth[] purposes = Auth.values();
		for (Auth au : purposes) {
			if (au.get() == auth) {
				return au;
			}
		}
		return null;
	}
}
